//
//  BottomTableViewCell.m
//  test1
//
//  Created by chen on 16/10/30.
//  Copyright © 2016年 chen. All rights reserved.
//

#import "BottomTableViewCell.h"
#import "UIImageView+WebCache.h"

@implementation BottomTableViewCell

/*
 @property (weak, nonatomic) IBOutlet UIImageView *icon;
 @property (weak, nonatomic) IBOutlet UILabel *title;
 @property (weak, nonatomic) IBOutlet UILabel *location;
 @property (weak, nonatomic) IBOutlet UILabel *time;
 @property (weak, nonatomic) IBOutlet UILabel *attentionNum;
 @property (weak, nonatomic) IBOutlet UILabel *price;
 */

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}


-(void)setModel:(RecommendsModel *)model {
    
    _model = model;
    
    [self.icon sd_setImageWithURL:[NSURL URLWithString:model.logo]];
    self.title.text = model.title;
    self.location.text = model.address;
//    NSString *time = [model.startutc stringByAppendingString:model.endutc];
//    self.time.text = time;
    self.time.text = model.startutc;
    //设置visitnum
    NSNumber *num = model.visitnum;
    self.attentionNum.text = num.description;
    self.price.text = model.pricearea;
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
